MCQ Answer

Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?

Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?

निम्नलिखित में से कौन सी लिस्ट (मैप (लंब x: x ** - 1, [1, 2, 3]) के समान है?)
Topic : Sequence data types in python

A. [x**-1 for x in [(1, 2, 3)]]

B. [1/x for x in [(1, 2, 3)]]

C. [1/x for x in (1, 2, 3)]

D. error एरर




Correct Answer is :

C. [1/x for x in (1, 2, 3)]



Explanation
x**-1 is evaluated as (x)**(-1).
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz